﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace vueweb.Areas.Vue.Controllers
{
	[Route("netcoredemo")]
	[Area("vue")]
	public class demo : BaseController
	{
		[Route("transaction/list")]
		public IActionResult transaction_list()
		{
			string json = "{\"code\":20000,\"data\":{\"total\":20,\"items\":[{\"order_no\":\"b95d3D74-B72C-39eE-7EDD-bbb7dfC1BB41\",\"timestamp\":406487970790,\"username\":\"Daniel Young\",\"price\":11149,\"status\":\"success\"},{\"order_no\":\"E8b3dF6F-7f8f-d8d7-9e2a-68d4FcBa45ad\",\"timestamp\":406487970790,\"username\":\"Paul Wilson\",\"price\":11254.29,\"status\":\"pending\"},{\"order_no\":\"0bfdFDFb-5D2a-4630-BcDC-F1e89FDaDD9b\",\"timestamp\":406487970790,\"username\":\"Nancy Hernandez\",\"price\":14746,\"status\":\"pending\"},{\"order_no\":\"81d70B64-D2a4-27BC-F9f8-7706ADD1bB94\",\"timestamp\":406487970790,\"username\":\"Michelle Johnson\",\"price\":10847.2,\"status\":\"pending\"},{\"order_no\":\"cB566f9E-4dAf-A88E-6EBa-aD08FfaC59E5\",\"timestamp\":406487970790,\"username\":\"Timothy Martinez\",\"price\":14595.5,\"status\":\"success\"},{\"order_no\":\"af2a34eD-6CC4-A5Bb-98DC-8Cb471b7D5cf\",\"timestamp\":406487970790,\"username\":\"Michelle Lee\",\"price\":10556.4,\"status\":\"success\"},{\"order_no\":\"D361CedE-6cf4-e924-87d9-C32bd28aCdD0\",\"timestamp\":406487970790,\"username\":\"Jose Harris\",\"price\":6172,\"status\":\"success\"},{\"order_no\":\"9dEC7629-7430-8D82-Efeb-1D8dFE2e25C7\",\"timestamp\":406487970790,\"username\":\"Laura Harris\",\"price\":12762.5,\"status\":\"pending\"},{\"order_no\":\"a61db9EE-863d-c6b4-c5b8-FD050DDF2e93\",\"timestamp\":406487970790,\"username\":\"Steven Anderson\",\"price\":3486.5,\"status\":\"success\"},{\"order_no\":\"F488Ff5B-e9FF-E1D5-fC6a-b9AA75dA1082\",\"timestamp\":406487970790,\"username\":\"Mary Williams\",\"price\":1210.28,\"status\":\"success\"},{\"order_no\":\"9d2F8cde-cdBA-71de-8DfA-d6ef4b539735\",\"timestamp\":406487970790,\"username\":\"Kenneth Brown\",\"price\":8903.4,\"status\":\"pending\"},{\"order_no\":\"3Ae2d71B-Dd4F-Cba6-7757-74d6De9Ee7a4\",\"timestamp\":406487970790,\"username\":\"Patricia Miller\",\"price\":4575.28,\"status\":\"success\"},{\"order_no\":\"B13C842c-cD3e-354B-FA6e-E48fEB38e0A2\",\"timestamp\":406487970790,\"username\":\"Kevin Miller\",\"price\":4026.4,\"status\":\"success\"},{\"order_no\":\"86eBf4CD-D6Eb-8ce2-B653-A4DeFE7c562c\",\"timestamp\":406487970790,\"username\":\"Matthew Wilson\",\"price\":3143,\"status\":\"pending\"},{\"order_no\":\"1634Ceba-1ADA-1887-DcFf-8dEA3beBccA6\",\"timestamp\":406487970790,\"username\":\"Sandra Hernandez\",\"price\":5343.05,\"status\":\"success\"},{\"order_no\":\"8A4cf9D8-af43-DCFD-e6f4-d1ec981Bde3B\",\"timestamp\":406487970790,\"username\":\"Sarah Miller\",\"price\":13376.5,\"status\":\"pending\"},{\"order_no\":\"E2E7Bd1A-7f9a-D691-4D87-fE69FD6D8EF3\",\"timestamp\":406487970790,\"username\":\"William Brown\",\"price\":3538.6,\"status\":\"success\"},{\"order_no\":\"b4b8AA29-e3e3-a4e8-4C8E-9ddA08B1bc55\",\"timestamp\":406487970790,\"username\":\"Joseph Moore\",\"price\":5257.52,\"status\":\"success\"},{\"order_no\":\"1Ff789c9-c2cf-c527-95Cc-fDA789Cf2Cf3\",\"timestamp\":406487970790,\"username\":\"Kevin Harris\",\"price\":14463.1,\"status\":\"success\"},{\"order_no\":\"CaF47De0-7b37-06Df-F3b7-9B6E2779EBcc\",\"timestamp\":406487970790,\"username\":\"Michael Thomas\",\"price\":1094.64,\"status\":\"pending\"}]}}";
			return Content(json, JsonContentType);
		}

		[Route("demo1")]
		public IActionResult demo1()
		{
			return View();
		}

		[Route("demo2")]
		public IActionResult demo2()
		{
			return View();
		}
	}	
}
